﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddMenu.aspx.cs" Inherits="ShowRoom.admin.AddMenu" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>

    <form id="form1" runat="server">
    <center>
      <div style="width:100%;text-align:center;color:#C794BA;font-weight:bold;margin-bottom:10px;margin-top:15px;"><asp:Label ID="lblTil" runat="server" Text="THÊM MỚI MENU"></asp:Label></div>       
        <table id="tblMaster" runat="server" bordercolor="#E1E1E1"  border="1" cellpadding="0" cellspacing="0" width="90%"
            style="border-collapse: collapse;">              
            <tr>
                <td style="width: 20%;text-align:right;padding-right:10px;height:30px"  nowrap>
                    Tên menu <font color="red">*</font>:</td>
                <td style="width: 80%; text-align: left;padding-left:5px">
                    <asp:TextBox ID="txtTen" CssClass="cssTextBox" Width="90%" runat="server"></asp:TextBox></td>
            </tr>
          
            <tr>
                <td style="width: 20%;text-align:right;padding-right:10px;height:30px" >
                    Link</td>
                <td style="width: 80%; text-align: left;padding-left:5px" > <asp:TextBox ID="txtLink"  CssClass="cssTextBox" Width="90%" runat="server"></asp:TextBox>                   
                </td>
            </tr>
           
            <tr>
                <td style="width: 20%;text-align:right;padding-right:10px;height:30px"  nowrap>
                    Active:</td>
                <td style="width: 80%; text-align: left;padding-left:5px" >
                    <asp:DropDownList ID="ddlActive" runat="server" Width="200px" CssClass="cssDropDown">
                        <asp:ListItem Value="Y">Hiện</asp:ListItem>
                        <asp:ListItem Value="N">Ẩn</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>           
            <tr>
                <td class="ActDocTD2" style="height: 30px">
                    &nbsp;</td>
                <td style="text-align: left; height: 21px;" align="center" class="ActDocTD3">
                    <asp:Button ID="btnSave" CssClass="button" runat="server" Text="Save"  OnClientClick="return fnSave();"
                       onclick="btnSave_Click"  Width="75px" />&nbsp;<asp:Button ID="btnCancel" 
                        CssClass="button" runat="server"
                            Text="Cancel" Width="75px" onclick="btnCancel_Click" /></td>
            </tr>
        </table>
        </center>
    </form>
    <script type="text/javascript">
        function fnSave() {
            // kiểm tra tên        
            if (document.getElementById("<%= txtTen.ClientID%>").value == "") {
                document.getElementById("<%= txtTen.ClientID%>").className = "CssNotOk";
                return false;
            }
        }   
    </script>
</body>
</html>
